﻿using System.Windows;
using Microsoft.Practices.Prism.Events;

namespace WhiteFlow.DevTrackingTool.UI
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private static EventAggregator eventAggregator;

        /// <summary>
        /// Gets the event aggregator for the current instance of this application.
        /// </summary>
        public static EventAggregator EventAggregator
        {
            get
            {
                if (eventAggregator == null)
                    eventAggregator = new EventAggregator();

                return eventAggregator;
            }
        }

        /// <summary>
        /// Handles the <see cref="E:System.Windows.Application.Startup"/> event of the application.
        /// </summary>
        /// <param name="e">A <see cref="T:System.Windows.StartupEventArgs"/> that contains the event data.</param>
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
        }
    }
}